package com.zls.demo.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "LocalRpcService", url = "${remote.url}")
public interface LocalRpcService {

    @PostMapping("/test") //被调用接口的请求类型
    String test();
}
